<template>
	<view>
		<privacy-policy v-if="privacyType == 1"></privacy-policy>
        <user-service-agreement v-if="privacyType == 0"></user-service-agreement>
	</view>
</template>

<script>
import privacyPolicy from "@/pages/privacy/components/privacyPolicy.vue";
import userServiceAgreement from "@/pages/privacy/components/userServiceAgreement.vue";
	export default {
    components: { privacyPolicy, userServiceAgreement },
		data() {
			return {
				privacyType: null,
			}
		},
		onLoad(options) {
			if(options.privacyType) {
				this.privacyType = options.privacyType
				uni.setNavigationBarTitle({
					title: options.privacyType == 0 ? '用户服务协议': '隐私政策'
				})
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
